#ifndef __BUTTON_H__
#define __BUTTON_H__

#include "main.h"



typedef void (*Action)(void *);

typedef enum
{
    enPressed=0,
    enReleased,
    enPush,
    enLongPressed
}ButtonSta_t;




typedef struct tag_button
{
    ButtonSta_t status;
    uint8_t     cnt;
    uint8_t     tempcnt;
    Action      action;
    //Action      init;
}Button_t;

void ButtonInit(void *me);

void ButtionAction(void *me);  /* ���°���״̬�ͼ����� */

#endif
